package com.commit.domain;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author:zyh
 * @Time:2021-02-27-15:39
 * @email:1269231889@qq.com
 */
@Data
@ToString(exclude = {"id","password","loginName"})
@ApiModel
public class User implements Serializable {
    private static final long serialVersionUID = -1l;
    private Integer id;
    private String loginName;
    private String password;
    private String username;
    private String nickname;
    private String avatar;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
